This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Jun 7, 2011, 10:38 AM
38 Posts

Using OnError in Partial Refresh

  • Category: Other
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags: xpages,onError
  • Replies: 2
I found this link (http://xpagesblog.com/xpages-blog/2009/9/9/client-side-events-for-partial-updates-onstart-oncomplete-on.html) which tells about the onError function which can be used in case error occurs in partial refresh.
 
But how does one go about getting what error had occured? Are there any in-built variables which store these errors?
Jun 7, 2011, 1:53 PM
64 Posts
From the dojo.xhrget toolkit documentation...
- I googled for: XPage onError "partial refresh", and this gave lots of hits, where not a one I saw shows any parameters on a partial refresh onError.  That's bizzare, having NO data about an error at all.
 
- I'd define the onError and set a breakpoint in Firebug, then look at what JS objects are present.

Hope this helps...
Jun 7, 2011, 2:12 PM
33 Posts
Re: Using OnError in Partial Refresh
Hi,  
you can do this:
 
function(response, ioArgs) { 
    alert(response.status);
    alert(response.message);

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal